package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.request.BrandAgentStatusRequest;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.response.AgentUserRegionResponse;
import com.zbkj.common.response.BrandAgentDetailResponse;
import com.zbkj.common.response.BrandAgentPageDataResponse;
import com.zbkj.common.request.BrandAgentSearchRequest;
import com.zbkj.common.request.BrandAgentSaveRequest;
import com.zbkj.common.model.agent.BrandAgent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.response.PlatformBrandAgentPageDataResponse;

import java.util.List;
/**
* @author dazongzi
* @description BrandAgentConfigService 接口
* @date 2025-07-01
*/
public interface BrandAgentService extends IService<BrandAgent> {

    Boolean create(BrandAgentSaveRequest brandAgentSaveRequest);

    /**
     * 分页查询品牌商代理设置表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    PageInfo<BrandAgentPageDataResponse> getPageList(BrandAgentSearchRequest request, PageParamRequest pageParamRequest);
    PageInfo<PlatformBrandAgentPageDataResponse> getPageListPlatform(BrandAgentSearchRequest request, PageParamRequest pageParamRequest);

    BrandAgentDetailResponse getDetailById(Integer id);

    boolean updateBrand(BrandAgentSaveRequest brandAgentConfigRequest);

    boolean batchDelete(List<Integer> idList);

    boolean updateStatus(BrandAgentStatusRequest request);

    AgentUserRegionResponse getBrandRegionList(Integer brandId);
}